/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: DateDemo
 * Author:   xbliu
 * Date:     2020/7/2 9:51
 * Description: 时间类
 * History:
 * <author>          <time>          <version>          <desc>
 * xbliu           修改时间           版本号              描述
 */
package c_008.detedemo;

import java.util.Calendar;

/**
 * @Classname DateDemo
 * @Description TODO
 * @Date 2020/7/2 9:51
 * @Created by xbliu
 */
public class DateDemo {

    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
        System.out.println(calendar.get(Calendar.YEAR));

        calendar.add(Calendar.YEAR, -1);
    }
}
